#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
class QPushButton;
class QLineEdit;
class QLabel;


namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    QString decToBin(QString str);
    QString hexToDec(QString str);
    QString decToHex(QString str);
    QString binToDec(QString str);

private:
    Ui::Widget *ui;
    QString str1;
    QString str2;
    QString  c;
    QLineEdit *ledt;
    QPushButton *hex;
    QPushButton *dec;
    QPushButton *bin;
    QLineEdit *lhex;
    QLineEdit *ldec;
    QLineEdit *lbin;
    QPushButton *maxcd;
    QPushButton *squ;
    QPushButton *cube;
    QPushButton *sin;
    QPushButton *cos;
    QPushButton *tan;
    QPushButton *mincm;
    QPushButton *sqr;
    QPushButton *tenx;
    QPushButton *log;
    QPushButton *ln;
    QPushButton *mod;
    QPushButton *pi;
    QPushButton *rec;
    QPushButton *ce;
    QPushButton *cle;
    QPushButton *back;
    QPushButton *div;
    QPushButton *btn_a;
    QPushButton *btn_b;
    QPushButton *btn_7;
    QPushButton *btn_8;
    QPushButton *btn_9;
    QPushButton *mul;
    QPushButton *btn_c;
    QPushButton *btn_d;
    QPushButton *btn_4;
    QPushButton *btn_5;
    QPushButton *btn_6;
    QPushButton *sub;
    QPushButton *btn_e;
    QPushButton *btn_f;
    QPushButton *btn_1;
    QPushButton *btn_2;
    QPushButton *btn_3;
    QPushButton *add;
    QPushButton *leftbr;
    QPushButton *rightbr;
    QPushButton *mark;
    QPushButton *btn_0;
    QPushButton *point;
    QPushButton *equal;

private slots:
    void btn_0_clicked();
    void btn_1_clicked();
    void btn_2_clicked();
    void btn_3_clicked();
    void btn_4_clicked();
    void btn_5_clicked();
    void btn_6_clicked();
    void btn_7_clicked();
    void btn_8_clicked();
    void btn_9_clicked();
    void btn_a_clicked();
    void btn_b_clicked();
    void btn_c_clicked();
    void btn_d_clicked();
    void btn_e_clicked();
    void btn_f_clicked();
    void hex_clicked();
    void dec_clicked();
    void bin_clicked();

    void squ_clicked();
    void cube_clicked();
    void sin_clicked();
    void cos_clicked();
    void tan_clicked();

    void sqr_clicked();
    void tenx_clicked();
    void log_clicked();
    void ln_clicked();
    void mod_clicked();
    void pi_clicked();
    void rec_clicked();
    void ce_clicked();
    void cle_clicked();
    void back_clicked();
    void div_clicked();
    void mul_clicked();
    void add_clicked();
    void sub_clicked();
    void equal_clicked();

    void point_clicked();
    void mark_clicked();










};

#endif // WIDGET_H
